bug fix to invite process