Fixed some minor issues preventing the creation of XText files