bugfix, using wrong variable