bugfix for invitation