fix problem with saving custom fields (rels)