fixing bug with add task feature.