fixed update-index.rb