Fix bug on ios