Fix port directionality