fix metric system bug