Fixed syncing bug