fix uninitialized array

- initialize sendEvents and receiveEvents array to avoid deadlocks