minor: fixed undefined variables