Change update_index to _update_index, it is for internal use only.