fix index definition