removes debug flag