FIxes for invalid $config usage
Fixed config usage