fix issue #3 -B option shows wrong total number of results