Fix sync task period restart