fixed if current task is not isset