Fix counter trouble