BUG: Fixed a bug in tree_next_post() when it had to go up several levels to find the next node.