Fixed bug with variable typo