Fix delete staled documents