Republicans pledge allegiance to the flag