fix flash kernel