Fixed all socket send/receive errors