fix server script error