Fixed typo causing fatal error