Fix bug in relationships via REST API.