add min_crash_count and fix insert bug