Remove duplicated tasks