fix undefined variables [ci skip]