fixing counter v1.46