Fixed random removing documents