fixed issue with incorrect keyPath which prevented indexes from inserting data.