Fix bug on iOS