Fixed task update issue