validate syntax error fix