fix RID / params bug