bug fix at method call and func call