bug fix incall-function