work to fix modals