Fixes counter.js bug