Fix format of cmd that generated error.