Fix bug with creation of the initial hash for a filename