fixed another redirecting issue