fix template to use template key in component.json