fixes display glitch on ios