fix event handling (was using event's target instead of receiver)