fix bug when zooming on the pdf document