 
   # called by element every time the draw-cache is used
   useDrawCache: (element) ->
-    @_cachedBitmaps.get(element)?.use @_currentFrameNumber
+    @_cacheBitmaps.get(element)?.use @_currentFrameNumber
 
   # called every time a new element drawCache is created
   # OUT: a clear bitmap (filled with pixel with color: #0000)

  # called by Element#_clearDrawCache
  doneWithCacheBitmap: (element) ->
    # @_validateCacheByteSize "doneWithCacheBitmap start"
    if cachedBitmap = mapRemove @_cachedBitmaps, element
      cachedBitmap.elementDoneWithCacheBitmap()
      byteSize = cachedBitmap.getByteSize()
      # console.error "doneWithCacheBitmap recycling for #{cachedBitmap.element?.inspectedName} bitmap = #{cachedBitmap.bitmap.size}"

        context:            context
        tracked:            {@cacheByteSize, @unusedCacheByteSize}
        actual:             {cacheByteSize, unusedCacheByteSize}
        cacheBitmaps:      cacheBitmaps.length
        unusedCacheBitmaps: @_unusedCacheBitmaps.length

      throw new Error "bad _cacheByteSize"
