fix crash count bug