Fix in potential logging issue