fixed flash errors