bugfix

used undefined variable