correct lexical bugs