fix page tree