Fixing a bug in parsing SOAP response