Fix empty/wrong argument parsing.