Fix memberships creation tu use the new API changes