quick engine.js fix