fixed bug: In case that count_value_key's value is not Integer, automatic cast cause problem.