fix for pdf viewing