Fix metric calculation button