Solve some issues with fancyBox