Use dict get default value instead of setting env.