fix error in cache timing