fixed flash issues