Fixed textures not uploaded correctly