fix bug at count module