fix: in case of error, clear local cache