fix PDF showing issue