Bug fixed: error returned if $config is not an object