Update trees index