Fix bugs when no commands are given