Implemented fix-socket patch