fixed cascade type when updating relationships