Socket behave fixed