correcting paths for plots