fix core dump when modifying parent of a task
 fix core dump when moving create a new list
fix task position in tree view when changing the task state (sort / unsort)