fix in reading xml uploads