Bug fix relating to deleting first point in cdf (#306)