engine.rb fix