Fixing issue with port inconsistency.