Removed viewer.refresh call which throws exception