Fixes issue where couldn't save when _id had type set to uid