Fixed the fancybox bug