Fixed incorrect parsing of events and nodes.