fix invalid space of templates in common