Removing duplicate error events