fixed pdf rendering issues