removing doc from the wrong place