fix flash runtime