more fixes to task corruption
fix clear-completed