Changed the format of compressed index and fixed the index creation of compressed index