fix a scan bug that could occur if the nntp connection broke