Fixed variable typo in code