fix server redirection