fixed another bug where when inviting more than one person it would create duplicates