fix bug with past events