FIx: method overloading for custom class

Fix compile error when custom class has multiple overloaded functions with different selector.