Fix Linux crash sometimes.