fixed duplicate membership issue