Fix bug in PullCurve when delete_input is True. Fixes #110