fix component children mapping when parent has template