repair syntax error