fix for crash reporting