removing null references in datadirentry