fix flash issue