fixes logic in membershiphelper updatemember