fix for failure in polyglot/regression/2697.rb