fixed flash mode toggling