Fixed a conversion warning in index.cc