correct the dat file directory