fixed debug/min switcher