Bugfix: remove undefined variable