Fixed a nasty bug in discuss service with allow threads option.