fix bug for empty command line