fix client error method invocation