Fixing inconsistenty between name of file loaded and name of filename