Correcting port specification