cmd history fix