debug flash fix