Fixed flash script