using cache with copy or clone bug?