Fixing the way as a syntax error is printed