fixing bug 1293

--HG--
extra : source : 9c1d1c1219c2b8ec782cc40912ef1952bb16e26e
further fix for templates menu
Merge pull request #582 from einhverfr/1.4

fixing bug 1293