Defined $config

fixed $config undefined notice some users were having