Fixed problem with config validation.