fix bug in key $config
Merge branch 'refactor'