fix error notification bug