fixed getPort