fix minor bug when missing textures