fix texture scaling