fixing bug 1293
further fix for templates menu

--HG--
extra : source : 4e6f27a35c278d3465574eb93ec3d4f378799db4
Merge pull request #581 from einhverfr/master

fixing bug 1293