Fix redirect path bug