fixed getting history of metrics