fix to get-events method