Fixed an issue with deleting members.