Update scripts count was wrong