Fix for fancybox glitch on close