Fixed a bug with project invitation