Fixed the segfault in client_update.