Really fix the parsing of the event type field

- Typo: use the bitwise operator and not the comparison operator