fixed an error in verify_update