fix the counter cache in dirty way