fixed : bug with stopping task