Fixed a bug with client deletion.