Fancybox fixes for statistics