Fixed bug when you filter events.