Fix texture bug.