Fixed bug cause by previous commit

Didn't take the addon method into consideration when implementing
function.call();