fix bug - wrong variable name