fix to object types not being parsed properly