Don't assign two times the format to a file
Assign format from best match