Fixed bug in removing members