fix finding of top events