Fixing port assignments