Fix port placement on squares with lots of ports