Fix UndefinedVariableError, which had, uh, undefined variables

Signed-off-by: martin f. krafft <madduck@madduck.net>