Fix the bug of fancybox

Fancybox doesn't show correctly without the change.