fixed issue with modals