fixed tasks controller issue