fix template of component