fix bug in key $config