minimal fix on template