Fixed page depth bug