Fix error with undefined settings