Redirect works properly now