Typo in variable name corrected