Fix grid buffer event bug

- initialize sendEvents and receiveEvents array to avoid deadlocks