Fix iOS fancybox bug