fix bug when decreasing number of members