fixed template issue with MultiDicts