relationships: fixed persisting cached relationships