Fix a bug caused by stale cache