minor bugfix on template style