Fixed fancybox bug