fix error of zero doc count and term count