Fix ports order enumeration