fix index command