fix event filter on boundaries