handle update on errors