Fixed changepointdetection