Bugfix in method name deduction