Fixed an issues with counter-reset declaration