counter date fix