fix generate_po check to ensure it is executed on only one rec