fix cutpoint ending