Fixed typo causing error in output