fix index format