fix flash layout