fix log bug on IOS