fixing counter v1.387