Update tree index