bugfix on variable