fixes error while syncing