fix parse int problem.
Enhanced server robustness.