Fix log messages collection