auto cache
fix some problem