fixing miningCount done