fixed flash error