fix bug in metrics route