fixes bugs Create duplicated tasks