parameterization of refresh memberships, fixed crash on
duplicate insert