Fix config type checking