Fix bug on add tasks