fix db_pri.count bug