Fix a bug where team members didnt get removed