fixed cache cleanup