Fix loading of modals with remote URLs.