fixed potential hasher problem in IMA template hash