change hashes in template to lowercase