fix fancybox implementation part 1