fix some pdf rendering issues (0.5hrs)