Fixing collisions cache bug