fix a bug where output ports were not checked