fix bug with getting discussion ids