fixed dates bug in metrics