make sure the XT is defined when populating data

Hopefully a fix for 2083 but Perry will have to UAT after merge.