syncing on error added.