fixes a bug where DELETE for to-many relationships cannot get data