Bug fix - fix typo in variable names