fix bug of enabled command of local history