Repair count uplods in js