Fix fancybox issues