Fix for statistics in fancybox