fixed pdf issue