fixed issue with event handler detection