Bug with cloning the engine.

Didn't clone the cachedEngines array.