Attempt to fix flickering on ios device