fix engine.rb