Fixed a bug that was leading to unresponsive server socket