Make sure that the 'config' variable is correctly defined and declared