fixed exception and Socket ID