fix minCrash bug