Fix : sync on background, at the end of the sync, delete only new_elem sent to the server or received from the server