Fixed the texture bug