fix wrongly sized array leading to events being dropped