Bugfix, undefined variable