stops debug and fixes syntax error