Fix bug in invite text feature