fix engine.coffee