Fix port number converstion (n-to-h)