Fix bug in happens before relations for network events