Fixed overriding method detection.