Fixing small bugs in interp1d call for automated segmentation.