Fixing issues where the contents of the files got switched.