Fixes in order to treat correctly event and sub-event header extensions.