`$name` is undefied, this should be `$config`