bugfix in event validation