@yumingfei , Thanks for pointing out this.
But I think it is sync's job to make sure the restoration is valid.
I'll make another PR for this.