remove duplicate emission of error event