fixing counter v1.31