fix cache age check