Fix archive tasks synchronization (issue #4230)