Fix bug in error message related to validating facts_d_mode