Try to fix https://github.com/dimsemenov/Magnific-Popup/issues/57