fix polyglot rollback