Is it a level entity or a view entity? If it's a level entity, are you setting the materials after every level loading?