Fixed broken mechanism of ports exposure.