Bug fixes in #process_args() method