fixed viewer bug in modal