fixed flash script