bugfix for fancybox