sync afterSync fix