fix added exception when method name invalid