Fix error in addMember

Fix error where user object was assumed to be in an array.
Closes #809