Fixed typo causing key error