Fixed a minor bug causing segfault when printing the index sites