Fixing debug flag to inhibit errors