fix issue with sync