Fixed the client retry code.