Fix lda, regression models