fix output ports