fix flash when begin