Fix bugs with config -e and config -o.