Fixed deletion of old metrics