bugfix: wrong variable declaration