Added fallback for invalid configuration