small pdf bug fix