Fix events array