fixing counter v1.49