Fix NaN error due to excessive zoom.