fix doc viewer problem1