Fix undefined error in cache system.