Fix for incorrect redirect