Fixes bug with counter names.