Fixed duplicate key bug in memoize-metric