BUG: fixed typo in template head hash