fix handling of bad config