changing texture

fixing the changing of textures