Fixed result counter bug.