Fix the Socket Error issues