fix bugs about adding task within a list