Fix an edge case where nested components may be set up twice