bad values in  _write_custom_error