fix magnificPopup bug