Fix initialisation of error event

Change-Id: I19e955c3ca7c84600ec89ff24d5c7458202ff609