Make config argument more defensive.