Correction

Correction in cachesolve function