Fix ConfigSet and ConfigUnset bugs