Workaround for Fancybox bug