fixes #12458 , fixes duplicate error and status error.