fix bug for empty counter name input