fix template bug from chris