remove one document bug