Cleaning up parsing errors