Log viewer bug fixes