This typo caused generating 'end' events without the corresponding 'begin' events.
mentioned in merge request !2914 (closed)