fixed weird errors with not being able to charge. Minor fixes to keep the state of members as an array all the time