Bugfix for XPS read.