fixes to relation save code