Fix a bug of delegator detection.

And remove event support detection.