Fixed small template scripting issue