Fixed typo resulting in exceptions