fix the issue of modal.js