bug fix on task call