fixed syntax error behaviors