error with doing an update