Fix updating tasks when merging contacts