Fixes modals not working from search.