fixed document removal