Fixed an issue where metrics json was being aggregated

Metrics JSON were being aggregated instead of being reset