setting debug flag back to false