fixed bug in pageTree