Fixed r2r pdf problem