Sorted error in data import code