fixed critical bug causing cache key collisions