fixed a bug of callfunc
Merge pull request #1643 from ShengxiangChen/issue_callfunc

fixed a bug of callfunc