fixed bug for invalid input for -hl, -ll -all commands