Fixing some small log reading issues