there was a bug in template script, now fixed