fix bug when starting simple commands