fix zoom detection