fix formatter of error message