fixed path issues for plots in pdf