fixes a bug where POSTing to-one relationships would fail