bug fix for past events