fix bug with setArg not returning anything