Makes sure the leafs got a shared material