bug fixes (initial sync, updating an already deleted task)