Fixed big bug on ios devices