Minor fix in converting the flags
Merge pull request #160 from tklengyel/minor_event_fix

Minor fix in converting the flags