Fix a small bug in tex coords computation