fix doc viewer problem