Fix bug in Surface with attaching views to hierarchical components.