fix invalid space of templates in framework