bugfix on variable scope