Fixed textures bug