 					{
 						// save the constant result of the function
 						_equationIsConstant = true;
-						_equationResultCache = null; // we don't need a cache
+						_equationResultCache.dictionary = null; // we don't need a cache
 						_constantResult = (compiledObject as CompiledConstant).value;
 					}
 					else

					{
						value = compiledEquation.apply(this, arguments);
						if (debug)
							trace(this,key.localName,value);
					}
					catch (e:Error)
					{

		/**
		 * This is a mapping from keys to cached data values.
		 */
		private const _equationResultCache:Dictionary2D = new Dictionary2D();
		/**
		 * This is used to determine when to clear the cache.
		 */		
