fixed redirect path issue