Fix calculate metric button