template two bug fixed