fix loading from file and renaming of wrongly labelled files