fix magnific popup coexistence with legacy popups