fix error in event hierarchy in DeviceStatusEvent and DeviceAggregateStatusEvent