fixed problem with filtering of unique event handlers. Turns out there is a valid reason to have the exact same handler registed more than once