fixes tree storage