Fixed viewer error