Fix duplicated argument parsing