fix pdf viewing sizing bug