Fix argument mismatch in rma apis