Fixed a delegate selector checking bug