fixed issue with when metric name was being check for duplicates