Bugfix for engine.