Fix invalid command prompt for empty input