Fixed stale element when re-using trees