Remove redundant ids from events