fix parsing errors