fix to pair socket