fix bug that hiddens modals in index.html