Fixed issue with broken viewer in recent Chrome versions