Fixes to logviewer