fixed duplicate membership creation