fix index redirect bug