fixed pdf rendering