attempting to fix pdf viewing errors