fixed bug in handle invitation
Merge pull request #8 from sammy/mod8

fixed bug in handle invitation