fix retrieving relationships for inverseOf relationships