Fixed problems with validate_config