Bugfix when switching .dat files