Fix bug for event compution with UPnP devices