fix for adding more than one tasks