Fixed typo causing crash