library fix index