fix generation of HASH file