deal with Mac crash issue