bugfix in client response handling