Fixed bug in MembershipController.