Fixed a bug in the project index