fix collect count bug