Fixes bug for metrics with zero dimensions