Fixed a bug in the pending client method.