Fix errored subscription and invite code being generated only on create