Fixed detection of enabled legacy port.