fix the index file not found problem