Fixing port mapping.