fix issues with port direction on several pads