fix metric basename