fixed buggy config-singleton.