Fix new buffer interface usage in set_arg