fix type and state of generated PO