make sure the XT is defined when populating data
Merge pull request #2089 from shackbarth/2083

make sure the XT is defined when populating data