Moved the reseting random tree inside the creator

The reseting of the random tree should be inside the model