fix flash function