Fix method of generating block hash