Fix XML reader