fixed debug mode syntax error