fixed flash issue