fixed xpath issues with restore_itemtypes