fixed a bug to make it robust wehn an unknown event is tere witouth HED code