fixed a bug concerning template updates