fixed NPE problem on Membership.toString()