fixed outport bug