Fixed a bug of iOS/android