fix #2342: crash when leaving cache list early