Modal controller race fix.