handle invalid cache value