fix output port init problem