fixed cache.c