Sync doesn't work properly