check for errors on putting deleted doc