fix bug at MetricLearn