bug fix on viewing logs