Fixed a spelling error and a keyerror that slipped by.