fix bug concerning the scaling of the counter values when it's needed