bug fixes in TaskDAO