fixing counter