Fixed a bug where it would try to create a membership that already exists