bugfix. incorrect variable name used