Fixes problem when setting properties on a relationship