Fix texture bug