Fix up if RID is invalid.