Fixed bug when adding a first membership