Fixed hashing of files