got rid of bad cache bug