minor bug fixes in the utility for checking the log