fix issue with camel cased attribute names for primary keys