Fixed expanding branch in document tree.