fix index file