fixed bad initialisation + resetting of metrics