Bugfixes for invites and homepage

A couple of bugfixes which were rapidly deployed to live.