fix lexical errors