fix port socket