fix index redirecting issue