Fixed bug where config variable is referenced in validation