fix index's