Fixed referencing OPTARG variable