fixed document bug