Fix errors in get events