fixed flash error.