fix open mail crash