fixed the bug that the template label in element config window was not u...

...pdated after changing it

closes #671