fixed debug mode