Fixed template dict key construction.