ServerSocket issues fix