fix server errors