Corrects the domains on several variables