Fixed redirecting error.