minor log bug fixes.