fixing counter v1.24