fix flash-scripts