Fix some issues with materials/textures