Added the restructureTree phase before rendering.