fix commandLog bug