Fix undefined function loadData

Hopefully this auto-merges.