fix _io.TextIOWrapper error, complete order compilation