fixed document start bug