Override modal.js to fix popup positions