Changed ArrayCache.length to ArrayCache.d.length.