Foliage instance can't be removed in packaged game

I was trying to create an interactive foliage and I succeeded but when I try it with packaged game all the iterations with the foliage fail. Is there an option to modify?