Fixed datafile pointer segfault.