fixed bug that stopped binding of socket.