another fix for socketPort comparison.