fix code that reduces levels for unique countries or dates