Trying to fix the iOS z-index bug