getting a template bug