fix count problem.