Fixed bug on static template tag