fixing counter v1.27