fix for truncated XML via LWP