Bug fix on invite method