document view fix