fix issue of running on IOS device