fixed a bug pointed by Michael in SMemory.js.
fixed TrackValuesEngine exception in ace.js