fix bug view document