viewer bug fix