Fix error in retrieving XML information