fixed json file moving after dat files