fix counter_cache issue