correct bugs about fancybox