fixing counter v1.386