end bad mode