Fix syntax error handler