fixed server hang