fix to make sure the order in the combined files are right