fix zoom scale math