BUG: fixed bug on method calling