fix parsing errors, undefined variables [ci skip]