debug flag was set incorrectly