fix metric in memory