fix scaleForTexture Bug