Small bug fix in config validation.