saveAsRoot transaction fix