Fix some inconsistencies in the event authentication code.