ClientProtocol error fixing