fix inverted textures