More bug fixes for fancybox