Fix typo in delegate method check.