Fix bugs on thunderbird autoconfig.